adding delete_by_id method

adding delete_by_id method. adding this to be more complaint to the regular API.
checked locally.