delete checks for id