improvements to delete apis