Making deletes functional