Skip to main content

Saving, publishing and deleting content

Strapi allows you to manage your content throughout its whole lifecycle, whether you are working on its draft version, about to finish it and share it with the world, or wanting to delete it when it's obsolete.

Saving & publishing content

caution

The possibility to manage drafts for contents comes from the Draft & Publish feature. This feature is activated by default, but it can be deactivated for any content-type from the Content-type Builder. If you disabled the Draft & Publish feature, saving your content means saving and publishing at the same time.

Your contents can have 2 statuses: draft or published. You can see the current status indicated on the right of the interface, above the Information box.

Editing draft version

By default, each newly created content is a draft. Drafts can be modified and saved at will, using the Save button on the top right corner of the edit view, until they are ready to be published.

Publishing a draft

To publish a draft, click on the Publish button in the top right corner of the content editor.

caution

Before publishing a draft, make sure it doesn't have relations with other non-published content, otherwise some of the content may not be available through the API.

When a content is not a draft anymore, but has been published, it is indicated on the right of the interface, above the Information box.

Editing published version

tip

To schedule publication, i.e. convert a draft to a published entry at a given date and time, you can follow this technical guide which requires adding custom code to the Strapi application.

Unpublishing content

Published contents can be unpublished, switching back to being drafts again.

To unpublish content, click on the Unpublish button in the top right corner of the content editor.

Deleting content

You can delete content by deleting any entry of a collection type, or the default entry of a single type.

  1. In the edit view of the entry, click on the Delete this entry button, located at the bottom of the right side of the interface.
  2. In the window that pops up, click on the Confirm button to confirm the deletion.
tip

You can delete entries from the list view of a collection type, by clicking on the delete button Delete icon on the right side of the entry's record in the table.
You also have the possibility to delete multiple entries at the same time. To do so, select your entries to delete by ticking the box on the left side of the entries' record. Then, click on the Delete button located above the header of the table.

caution

If the Internationalization plugin is installed, entries can only be deleted one locale at the time.