create /span/delete/preferences function