api: add delete() method