delete subject funktion