deleteCollection

@Modifying(clearAutomatically = true)
@Query(value = ""DELETE FROM " + COLLECTIONS_KEY + " WHERE " + IDENTIFIER_KEY + "=:" + IDENTIFIER_KEY", nativeQuery = true)
abstract fun deleteCollection(@Param(value = "id") collectionId: String)

Method to execute the query to delete a collection

Parameters

collectionId

: the identifier of the collection to delete