Changed delete to use id