Everything2
Near Matches
Ignore Exact
Full Text
Everything2

delete

"delete" is also a: user

created by JeffMagnus

(thing) by JeffMagnus (4.9 y) (print)   ?   (I like it!) Sat Nov 13 1999 at 14:28:32

An operator in the C++ programming language. The object referenced by the pointer passed as an operand to delete is destroyed and the memory it used is freed.

(thing) by Frater 219 (5 y) (print)   ?   (I like it!) Sat Nov 13 1999 at 14:28:32

To erase, obliterate, or remove. To cause something to enter a state of nonexistence. Often used of data.

Also a key on the PC keyboard which usually deletes the character to the right of the cursor.

On the Macintosh keyboard, the key marked "delete" is what a PC user would call a backspace key, and is in the position for such; the key marked "del" is a PC-style delete key.


(idea) by mricicle (10.1 mon) (print)   ?   (I like it!) Fri Mar 30 2001 at 13:07:10

DELETE is an SQL command for deleting data from a table in a (relational) database. Here is an example:

DELETE FROM example WHERE nickname='hax0r'

The statement above tells the database to delete all rows where the field nickname has the value 'hax0r' (a string) in the table called example.

The WHERE clause is the same as the one used by SELECT and UPDATE. If the WHERE clause is omitted, then all rows in the table will be deleted.

Here are some things that can cause the delete to fail:

  • Another table references the data in the table through a foreign key, and the foreign key does not cascade deletes. The delete only fails if there are rows in the referencing table with the same key values as the row(s) being deleted.
  • The user does not have permission to delete data from the table.

(thing) by ariels (22.1 hr) (print)   ?   (I like it!) Sun Jul 07 2002 at 11:44:51

(Perl:)

delete $hash{ELEM} deletes the key named ELEM from the hash %hash. After this command, exists $hash{ELEM} will no longer be true. See exists for more information on the difference between the operators delete and undef when applied to a hash element (you usually want the former).

In fact, delete will accept a hash slice. So delete @hash{'a','b','c'} will delete the three keys 'a', 'b', 'c' from %hash.

The return value of this operator is the list of the values which were associated with the specified keys (prior to their deletion, of course). This return value is rarely used.

(C++:)

delete p, where p is some pointer, destroys the object that p points to and releases the memory which was allocated to it (using new). In particular, the object must have previously been allocated using new (and delete must not already have been called for this object).

Common errors using this operator include calling delete on an array (you should use delete[] instead), and using delete to free PODs allocated using malloc.


(definition) by Webster 1913 (print) Tue Dec 21 1999 at 22:58:00

De*lete" (?), v. t. [imp. & p. p. Deleted; p. pr. & vb. n. Deleting.] [L. deletus, p. p. of delere to destroy. Cf. 1st Dele.]

To blot out; to erase; to expunge; to dele; to omit.

I have, therefore, . . . inserted eleven stanzas which do not appear in Sir Walter Scott's version, and have deleted eight. Aytoun.

 

© Webster 1913.


printable version
chaos

Del delete[] kill Nuke
INS ScanDisk found lost clusters Cult of the Dead Cow Ways to lose files
Existence of the System Administrator Teach Yourself Scheme: 11.1 Checking for and deleting files null primary key
node audit Tactics Arena Online My complaint about Dem Bones Information wants to be deleted
Chatterbox insert Friends don't let friends node drunk Best homenode bits of accounts I have deleted
Perl undelete Macintosh Password paradigms
Y'know, if you log in, you can write something here, or contact authors directly on the site. Create a New User if you don't already have an account.
  Epicenter
Login
Password

password reminder
register

Everything2 Help

Cool Staff Picks
Things you could have written:
artichoke
Skunked
Nessun dorma
Wow! signal
Roger Clemens
poppy
Mothman
Go to jail. Go directly to jail. Do not pass go, do not collect $200.
Fred Phelps
kouprey
Boris Johnson
Charles M. Schulz
March 5, 2007
New Writeups
The Jacket
Words of Advice(idea)
keepinitreal
Why buy the cow when you can get the milk for free?(idea)
John_Fox
Good Intentions Gone Wrong(person)
Cuckowski
Slavonic Princess(poetry)
Heitah
Posthumous Oscar(thing)
ignis_glaciesque
University of South Florida(place)
ignis_glaciesque
Flogstaskriket(idea)
liveforever
Caesar's last breath(idea)
dagnyswaggart
she wants to believe(personal)
antigravpussy
he doesn't know, but her eyes widen too far(thing)
dagnyswaggart
Wild tides guard her secrets(poetry)
Lord Brawl
Caesar's last breath(poetry)
locke baron
Forgotten things in space(fiction)
sitaraika
Colours(idea)
etouffee
Wild tides guard her secrets(poetry)
E2 is a by-product of the existence of The Everything Development Company