What is a CRUD Operation?

CRUD

CRUD stands for Create, Read, Update and Delete

These are the four basic functions of persistent storage usually related to data or content.

These operations represent the fundamental actions you can perform on data in any database or data management system.

  • Create: Add new data (e.g., a new user, post, or product).
  • Read: Retrieve or display existing data.
  • Update: Modify existing data (e.g., editing a blog post).
  • Delete: Remove data permanently or mark it as inactive.

How CRUD Relates to Web Applications and CMS:

In web applications, CRUD operations are typically tied to user interactions through forms, buttons, and interfaces. For example, a blog website allows users to create articles, read them, edit (update) them, and delete them. These actions are often handled via HTTP methods:

  • POST for Create
  • GET for Read
  • PUT or PATCH for Update
  • DELETE for Delete

In a Content Management System (CMS) like Drupal, WordPress, or Joomla:

  • Create: Adding new content such as pages or posts.
  • Read: Viewing or displaying that content on the website.
  • Update: Editing content through the admin dashboard.
  • Delete: Removing or unpublishing content.

In both web apps and CMS platforms, CRUD forms the foundation of how content and data are managed.

Here is a table comparing the different operations with examples.

Operation Definition Web Example CMS Example Technical Note
Create Adding new data or records User registers a new account Admin adds a new blog post Typically uses POST method
Read Retrieving or displaying existing data Viewing a product list or user profile Browsing published articles Typically uses GET method
Update Modifying existing data User edits profile details or changes password Editor updates a blog post Uses PUT or PATCH (via form)
Delete Removing or marking data as inactive User deletes a comment Admin deletes or unpublishes an article Uses DELETE or POST with delete flag
Main category
Address

OpenSourceCook.in
"Natraj"  Bungalow,
Colony No.7,  Sr.No. 38.
(Lane Behind Sai Baba Mandir)
Kale Borate Nagar, Hadapsar,
Pune - 411028.
Get Directions