Make a function to delete item so you can have more space

Make a function to delete item please