def delete(collection_name, spec, safe, last_error_args):
data = __ZERO<EOL>data += bson._make_c_string(collection_name)<EOL>data += __ZERO<EOL>data += bson.BSON.encode(spec)<EOL>if safe:<EOL><INDENT>(_, remove_message) = __pack_message(<NUM_LIT>, data)<EOL>(request_id, error_message) = __last_error(last_error_args)<EOL>return (request_id, remove_message + error_message)<EOL><DEDENT>else:<EOL><INDENT>return __pack_message(<NUM_LIT>, data)<EOL><DEDENT>
Get a **delete** message.