Unpin and Delete

How are old databases removed from IPFS

Removing old databases from IPFS is crucial to maintain a clean and efficient storage environment. This operation involves removing the data from IPFS and deleting the associated metadata.

API Route

  • Route: /api/unpin-database
  • Route: /api/delete-database
  • Operation: unpin
  • Operation: delete

Key Operations

When unpinning and deleting databases using the above endpoints via the UI, the following operations are performed:

  1. Authenticate the request
  2. When a new version fo the database is created, the old version is unpinned from IPFS
  3. After a suitable amount of time, the old version is deleted from IPFS automatically
  4. If the database is deleted (not just unpinned due to a new version), the associated metadata is also deleted from the Arcsec database, including the encryption keys.

Usage

You can delete databases using the UI interface. Simply navigate to the "Database" tab and click the "Delete" button. To delete all databases you cerated, you can do so in the Settings page. Unpinning is never triggered by itself, but is automatically performed when a new version of the database is created or when a database is deleted.