Skip to the content.

WIPE

← Back to Home - To Transport


The WIPE packet is used to remove/clear one or multiple values from the bucket, or to delete the entire bucket.

Request

Wipe request bytemap

Figure A: WIPE request byte-map (header and body)


The WIPE request (see Figure A) includes a header. This header contains one field: the bucket id and is used to indicate which bucket must be wiped.

The WIPE packet accepts one flag:

The body can contain the following fields:

If both indexes are omitted, the entire bucket will be wiped.

Response

PUT response bytemap

Figure B: WIPE response byte-map


The WIPE response is empty, and the result is indicated by a status code.

You might encounter the following error codes:

Process and flow

Wipe process

Figure C: WIPE process flow


The WIPE process (see Figure C) goes as follows:

  1. The client sends a WIPE packet containing the bucket id of the bucket to be wiped and optionally a start and/or end index
  2. The server checks if the user has the permissions to write to the bucket. If not, error code 3 is send.
  3. If the 6th flag is set (delete entire bucket) and the bucket has permission 6 (allow delete), the entire bucket is deleted. If not, error 71 is send.
  4. If flag #6 is not set, and the indexes are provided, the slots between the indexes are cleared.
  5. If only the start index is provided, all slots from the start index until the end of the bucket are cleared
  6. If no indexes are provided, all slots are cleared

← Back to Home - To Transport - Prev: PUT packet - Next: REQUEST packet