Everything2
Near Matches
Ignore Exact
Full Text
Everything2

delete

"delete" is also a: user

created by JeffMagnus

(thing) by JeffMagnus (4.7 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 (4.8 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 (8 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 (2.5 d) (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) I like it! 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
Look at this mess the Death Borg made!
Politeness is always in order
we lose weeks like buttons, like pencils
ApoxyButt's Guide to Successful Boating
drawing and quartering
The Wandering Jew
A Brief History of Computing
We all love movies and books about us owning ourselves
Google
Everyone has a dead bird story
Scoville heat unit
many-worlds hypothesis
Do not take advice from someone named after a reentry vehicle
Soviet Union vs. Socialism
New Writeups
locke baron
Multiple Myeloma(thing)
SubSane
blonde, freckles, skinny, short(person)
arcanamundi
A Ruba'iyat for May(person)
riverrun
Timed Writing(idea)
auraseer
Fling(fiction)
StrawberryFrog
Iron Man(review)
devolution
Misogyny and Porn, East to West - An Empirical Analysis(idea)
devolution
Korea is a place that refuses to stand still(idea)
Beanie127
The Pacifist Soldier(fiction)
VergilKint
Distilled from Dreams(fiction)
Scaevola
Roman marriage(thing)
rootbeer277
m&m's Ice Cream Treats(review)
Transitional Man
Gus's Chalet(review)
minnow
.410 bore(thing)
shaogo
Phonautogram(thing)
Everything 2 is brought to you by the letter C and The Everything Development Company