delete

open override fun delete()

Deletes the element.

Throws

when the entity has changed since it was last retrieved with read. Your delete call was rejected to prevent a lost update.

when the server responds with HttpStatusCode.BadRequest.

when the server responds with HttpStatusCode.Forbidden.

for other non-success status codes.