@transactional<EOL><INDENT>def delete(self, params, args, data):<DEDENT>
ctx = self._create_context(params, args, data)<EOL>row_id = ctx.get_row_id()<EOL>if row_id:<EOL><INDENT>deleted = self._delete_one(row_id, ctx)<EOL>if deleted:<EOL><INDENT>return ResourceResult(body={})<EOL><DEDENT>else:<EOL><INDENT>return NOT_FOUND<EOL><DEDENT><DEDENT>else:<EOL><INDENT>return NOT_FOUND<EOL><DEDENT>
Supports only singular delete and adds proper http status.