delete

@DeleteMapping(headers = "token", path = "/{" + COLLECTION_IDENTIFIER_KEY + "}")
open fun delete(@RequestHeader(value = "token") token: String, @PathVariable(value = "user_id") userId: String, @PathVariable(value = "collection_id") collectionId: String): String

Method to delete a collection

Return

the response message as String

Parameters

token

: the token of the user

userId

: the identifier of the user

collectionId

: the identifier of the collection to delete