Added DELETE with debug messages to common functions