worker

Delete a batch of objects with a given prefix

Changed on

Deletes all objects with the provided prefix from the database. The data is not removed from the network immediately. Instead, the autopilot prunes data from the contracts periodically, after that happens the host is no longer obliged to store the data and it's effectively removed from the network.

post/worker/objects/remove

Request

  • The document declares no server URL.
  • Auth
    none declared

Request body

bucketstring

The name of the bucket the objects belong to

prefixstring

The prefix of the objects to delete

Example request

{
  "bucket": "default",
  "prefix": "folder/file"
}

Response

Successfully removed objects

Changes

    • breaking

      added subschema #2 to the request property allOf list

    • breaking

      the request property type changed from string to no type

    • info

      the request property's minLength was decreased from 1 to 0

    • breaking

      removed the media type text/plain for the response with the status

    • breaking

      removed the media type text/plain for the response with the status

    • info

      api tag worker added