deletes layout