handle delete for all types