Added some functionality when deleting parameters